package qingke.struts.example1.action;

import com.opensymphony.xwork2.ActionSupport;

import qingke.struts.example1.model.Message;

public class MessageAction extends ActionSupport {
	
	private Message message;
	
    public MessageAction(){
    	
    }
    
    public String execute(){
    	message =new Message();
    	message.setMessage("Hello man,what's up man!");
    	message.setName("DG");
    	return SUCCESS;
    }

	public Message getMessage() {
		return message;
	}

	public void setMessage(Message message) {
		this.message = message;
	}
    

}
